package com.ruoyi.model.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.model.mapper.ModelColumnInfoMapper;
import com.ruoyi.model.domain.ModelColumnInfo;
import com.ruoyi.model.service.IModelColumnInfoService;

/**
 * 模型详细信息Service业务层处理
 * 
 * @author genghz
 * @date 2021-10-20
 */
@Service
public class ModelColumnInfoServiceImpl implements IModelColumnInfoService 
{
    @Autowired
    private ModelColumnInfoMapper modelColumnInfoMapper;

    /**
     * 查询模型详细信息
     * 
     * @param columnId 模型详细信息主键
     * @return 模型详细信息
     */
    @Override
    public ModelColumnInfo selectModelColumnInfoByColumnId(Long columnId)
    {
        return modelColumnInfoMapper.selectModelColumnInfoByColumnId(columnId);
    }

    /**
     * 查询模型详细信息列表
     * 
     * @param modelColumnInfo 模型详细信息
     * @return 模型详细信息
     */
    @Override
    public List<ModelColumnInfo> selectModelColumnInfoList(ModelColumnInfo modelColumnInfo)
    {
        return modelColumnInfoMapper.selectModelColumnInfoList(modelColumnInfo);
    }

    /**
     * 新增模型详细信息
     * 
     * @param modelColumnInfo 模型详细信息
     * @return 结果
     */
    @Override
    public int insertModelColumnInfo(ModelColumnInfo modelColumnInfo)
    {
        return modelColumnInfoMapper.insertModelColumnInfo(modelColumnInfo);
    }

    /**
     * 修改模型详细信息
     * 
     * @param modelColumnInfo 模型详细信息
     * @return 结果
     */
    @Override
    public int updateModelColumnInfo(ModelColumnInfo modelColumnInfo)
    {
        return modelColumnInfoMapper.updateModelColumnInfo(modelColumnInfo);
    }

    /**
     * 批量删除模型详细信息
     * 
     * @param columnIds 需要删除的模型详细信息主键
     * @return 结果
     */
    @Override
    public int deleteModelColumnInfoByColumnIds(Long[] columnIds)
    {
        return modelColumnInfoMapper.deleteModelColumnInfoByColumnIds(columnIds);
    }

    /**
     * 删除模型详细信息信息
     * 
     * @param columnId 模型详细信息主键
     * @return 结果
     */
    @Override
    public int deleteModelColumnInfoByColumnId(Long columnId)
    {
        return modelColumnInfoMapper.deleteModelColumnInfoByColumnId(columnId);
    }
}
